angular.module("fourth",[])
.config(["$stateProvider",function($stateProvider){
	$stateProvider.state("/fourth",{
		url:"/fourth",
		templateUrl:"html/fourth_page/fourth.html",
		controller:"fourthController",
		css:"html/fourth_page/fourth.css"
	})
}]).controller("fourthController",function($rootScope,$scope,$http){
	$rootScope.navigate = false;
	$http.get("html/fourth_page/fourth.json").then(function(data){
		//原生态
		$scope.arrA = data.data.original_ecology;
		$scope.arrB = data.data.original_ecology.goods;
		//营养
		$scope.arrC = data.data.nutrition;
		$scope.arrD = data.data.nutrition.goods;
		//蜜桔
		$scope.arrE = data.data.orange;
		$scope.arrF = data.data.orange.goods;
		//八宝粥
		$scope.arrG = data.data.milk;
		$scope.arrH = data.data.milk.goods;

	})
})